package com.enki.cigarettes.repository;

import com.enki.cigarettes.entity.RechargeRuleT;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.admin.repository
 * @Name e-cigarettes-admin-module
 * @Description: TODO 充值规则
 * @date 2019-08-08
 */
public interface RechargeRuleTRepository extends PagingAndSortingRepository<RechargeRuleT, String> {

    // 分页查询
    Page<RechargeRuleT> findAll(Pageable pageable);

    // 详情
    RechargeRuleT findOneById(String id);

    // 首充
    RechargeRuleT findFirstByFirstCharge(boolean firstCharge);
}
